package cn.com.dhcc.adam.spring.di;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DITest {
	
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		ApplicationContext ctx = new ClassPathXmlApplicationContext(
				"classpath:/springcontainer/di/di-config.xml");
		TService ts = ctx.getBean(TService.class);
		System.out.println(ts.getInfo());
	}
	
}
